create_paste: Hash based on file's content

This saves space by not creating duplicate files, by not stat:ing more
than once per save-action.

Thanks-to: Andreas Ericsson <ae@op5.com>
Signed-off-by: Carl Helmertz <chelmertz@op5.com>