Improvements to measurement csv upload handling

Fixes #366
Fixes #367

- Alias header generation fix
- move to 'official' release of liberator.
- user selects whether aliases in use.
- handle different line endings
- url encode/decode ids.
- 0 pad dates so they always parse as longs
- Handle weird mime types that are still csv.

  Apparently all of these can be csv files:

  "text/comma-separated-values"
  "text/csv"
  "application/csv"
  "application/excel"
  "application/vnd.ms-excel"
  "application/vnd.msexcel"
Merge pull request #343 from MastodonC/feature/fix-csv-upload-to-wrong-property

Stronger measurement csv upload handling
New programme/project manager authn logic

- New programme/project manager authn logic
  - roles->role
  - Changes to editable.
  - use new has-* functions
- Updated UI for user management: dropdowns for role for each programme
  and project
- Updated the entire UI with the new allowed? logic
- Minor fixes to the UI
Assoc :admin true to programmes if admin.
Update allowed in uploads.