Allow the fallback login credential to be passed when registering.

Signed-off-by: Ben Corlett <bencorlett@me.com>
Refactoring permissions to allow class / method permissions.

Signed-off-by: Ben Corlett <bencorlett@me.com>