Add support for basic auth

For basic security, i add basic auth, for application and monitor.