Post upload tasks

wrapped up most server upload tasks:
processing using gm , db updates, clean up orphan files function added, emits thumb processing event