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.