Adding global ajax handler, overhauling accounts pages