Fix for attachments not uploading

The problem was that all attachments were being treated as
images, which would fail for non-image file types.  Remove
the image processing from the attachment app logic.

Need to add some more tests to prevent the server from failing
on bad images.  Coming soon.
Prevent malformed images from crashing server

Check the err and size variables before proceeding.

Should make it best practice to return to the error message
as well in the error object; starting that with this commit.
Restrict photo uploads to photo types

Only allow image/* or gif/jpg/png image files for
profile/project images.
Update login branch with fileupload improvements

Merge branch 'sprint9' into sprint9-login