refactor and fix trailing slash bug
Merge branch 'master' of github.com:neverender/sneeze