Use SERVER_NAME so we get the right host through proxies
Correct paths
Merge pull request #18 from swills/master

Fix some minor issues I found