Added basic authentication classes.

Added the first layer for authentication.