Improves test and addeds required basic auth. Fixes #4.

Also improves the status page with SSL detection and now showing bitbucket username.