Added BasicAuth support

Fixes #11 

There are still a few things that need to be addressed:
- Username and passwords should be retrieved from database
- Config should be read to determine whether BasicAuth is needed
- Credentials should be hashed using salt