Make it build for ghc 7.8.x
parseAuthentication is now called parseAuthHeader
Organize imports