Redirecting the user with port, query and fragment.

Hi, 

I needed to redirect the user to a specific port, with query and fragment, but the way usergrid deals with redirection doesn't allow me to do that. It's removing the port and fragment, for instance. 

I think this simple patch may help somebody else.
Thanks,
Alberto