Upgrade to new permissions format (Array)

Also added mongoid migrations.
Ignore invalid user records in migration

They might be invalid for other reasons (eg they have been around for longer
than a given validation that it fails).
Merge pull request #69 from alphagov/upgrade_to_new_permissions_format

Upgrade to new permissions format (Array)