Rails 4.0 upgrade 

Fix for app:reset and db:seed
Fix for replication, enquiry, report, log_entry, field model/spec
Upgraded pdf-reader gem