Refactor authentication related code.
Authentication related code has partially been refactored into an
auth folder.
New code should import the moved classes from their new
locations. However, the refactor was done as a backward-compatible
change with TODO notes for completion.
See ARCH-244 for details on completing the refactor work.