Updated copyright notices to include the year 2018.
global: Replace o_stream_nfinish() with o_stream_finish() whenever possible
lib-storage: Renamed duplicate to mail_duplicate. This makes more sense given where this is now located.