Add device / sensor validation to csv-upload.

prismatic schema validation for devices and sensors. data level authorization.
make page size for measurements 10.

see #97
Make update strip out pks when necessary.
Fix id confusions.
Merge pull request #84 from MastodonC/feature/csv-upload-validation

Some validation on CSV upload