fix for login fail if user has no individual perms

I don't know if insert actually works here, just a guess that works for login.
Unfortunately, I can't really test permissions because I can't seem to get securify (run before permission save) to work quite right (aka cannot make any permissions)
various other fixes

User name instead of email
fix /groups.1 instead of /groups/1 problem
Probably other stuff too
fix twitter remove