Generated the attachment scaffolding.
Added accepts_nested_attributes_for attachment to device

See RailsCasts #403 to continue work.
Added javascript for adding a new file upload field.
Woring towards multiple file uploads at once
Nested Form for documet upload, link_to_add_document is not working
Multiple file upload from the new device form is functioning.
Merge branch 'document' into dev

Conflicts:
	Gemfile.lock
	app/models/device.rb