Add missing copyright header
Request basic auth when auth required for all formats except html
Add API for getting user information

Right now it responds only with username, as this is the only
requirement of gitorious-http-backend. It may be extended to return more
information in the future.