Basic authentication now works.

Horriby easy to hack, though. Need to fix that...