Partially implemented sign up flow with email confirmation. Validation still todo.
Save oauth2 association data when signing in
Add a validated flag on user accounts to determine whether the email
has been confirmed. Log in is not possible otherwise (openid/oauth
signups set this automatically.)

Various additions and improvements to the signup procedure, implemented
email confirmation, much more polish needed.
Various cleanups
Add a migration file for SQL changes
Merge branch 'master' into signup_flow
Late bind config so we can override it
Add errors
Remove superfluous method
Add a test for the signup mailing
Don't use query interface for check endpoint 'cos it pollutes the logs
Add country to place access filters
Merge branch 'master' into signup_flow
Porting various account mngment funcs over to the portal.
Attempt to clean up login form
More login tweaks
More fixes, tweaks to password handling etc
Small tweaks to login/forgot password templates
Make permission set parsing more forgiving (to ease server upgrades). Add test.
Merge branch 'master' into signup_flow