Add basic auth support for Apache. Fixes #410