Clean the namespaces up a bit

Add AuthType enum so we don't use a string to store the auth type.
Merge pull request #2 from Express50/patch-2

Clean the namespaces up a bit