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
refactor - separate data and http for measurements.
Merge pull request #99 from MastodonC/feature/separate-data-and-http-for-measurements

refactor - separate data and http for measurements.
add biomasses to profiles CF
Add web UI for profile CSV upload

- Make index-malformed? a multimethod.
- Add file-upload widget
Merge pull request #100 from MastodonC/feature/profile-csv-upload

Add web UI for profile CSV upload
WIP. Start of improved profile display.
WIP
Occupancy Row.
Added header row for profiles.
Added measurements row.
Added energy-row.
Remove logging that breaks IE 8.
Moved to form style display.
Added flats row.
Fireplaces.