Add unique username index to users. Fixes issue #19.
Merge remote-tracking branch 'origin/master' into qa