Fixed support for Amazon ELB with HTTPS offloading

If Amazon ELB offloads HTTPS, a new header is added for HTTP_X_FORWARDED_PORT. This header contains the port number used to connect to the ELB by the client.
Add NewRelic support so transactions are grouped correctly.
Add Memcache cache method
Adding Redirect::back() to go back to previous page