Upgrade existing UUIDs to the md5 of the existing data, not the whole

data.
Replace uuid column with int8 column to speed up queries
Fix UUIDs of long strings
merging in openid

Merge branch 'openid' of github.com:sociam/indx into unstable-perf
merging in todos

Merge branch 'unstable' of github.com:sociam/indx into unstable-perf
pgtest
Merge branch 'unstable' into openid
Merge branch 'unstable' into unstable-perf
Schema upgrade to always include long strings in some queries
Queries optimised to reduce unnecessary JOINs / string lookups
Improve performance of objects by id
Asserting long strings works again
Handle aggregating long strings in python
Merge branch 'unstable' into openid
Reindex new columns
Optimise queries
Fix schema upgrade issue
Fix table issues -> integer to bigint in functions
Merge branch 'unstable' of github.com:sociam/indx into unstable-perf
Merge branch 'openid' of github.com:sociam/indx into unstable-perf