Added a basic authentication solution for users.

References #20.