Replaces simplejson with json

simplejson was deprecated as of 1.5 and lacks support in 1.7
Fixes attribute error in username lookup

Checking for a username when the user model has been swapped out throws
an exception that the if/else doesn’t catch.