use the new config mechanism

This patch allows the routes and utils to make use of the new environmental config mechanism. It also makes the aforementioned elements somewhat more pythonic, which is nice.