refactored handling of images in directory create
Added format field to image, used to reject TXT files
Set up image/document association
Installed rspec with Factory Girl
Added basic specs for directories
added basic spec for images