added variable deployment host and c3p0 support
made authn redirect relative to host