Add basic auth support for Apache. Fixes #410

@remh First one of these I've done. I've tested it myself, but could you take a quick look to make sure everything is alright?

Also, the documentation on Dogweb will have to be updated. I will take care of this.