Fixing file-type util lib
Adding test for file-typ
Using file-type lib for image file detection in client and server side
Merge pull request #443 from codingtwinky/master

Consolidated file type check for both client and server side