fixing uwsgi/making more robust

I think this fixes the graphite settings to be more flexible. It gives you the option of using graphite-web without an external webserver using uwsgi. At some point this got ripped out.

There are some comments inline below as well.