Add mongoid production configuration

Mongolab is used for db in heroku.
Update device's value after new datum received

Datum osberver updates the device's cuerrent value when cretaing a new
datum.
Add has_scope gem to Gemfile
Add date filter on API data controller

When querying device's data, the :before and :after scopes allows to
get the data measured between a certain datetime range.