Performance fixes for projects and programmes

Wrapping in when and adding react keys.
Merge pull request #262 from MastodonC/feature/fix-react-warnings

Fix react warnings in programmes and projects table
Proper profile sorting.

Fixes #259

Also better property_details cursor hygiene.
Merge pull request #263 from MastodonC/feature/profile-sorting

Proper profile sorting.
Fixed sha1 generation & sorting for profiles.

Profiles are now unique according to entity_id, event_type and
timestamp.

Fixed sorting for when event_type is the same, then it sorts by date.
Merge pull request #264 from MastodonC/feature/improved-profile-id

Fixed sha1 generation & sorting for profiles.
wip: replace dimple with pure d3
wip: clj->js on measurements
Parse measurements.
Fix x axis
Allow to plot the same day and move datepicker.
Better css and clearing of measurements.
Add more data, fix css, control min y-axis value.
Partition by unit.
Improve unit validation.
wip: multiseries
wip: change how units are stored.
Sensors get only selected property
Fix units.
Add second y-axis back.