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

Also improves the status page with SSL detection and now showing bitbucket username.

This also fixes the tests that weren't properly mocking the `Request` module.