(#103) - Adds basic authentication & configuration support.

This should be the right rebase, but I think @marten-de-vries should check first.