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"