There is a Permalink button on the map which currently supports returning to the same Lat/Lon/Zoom, but not the choice of which layers are active.
cdauth's HashHandler could be a good basis for this:
Powered by Trac 1.4.2
By Edgewall Software
This work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.