Moved some data into python templates, and out of javascript server queries