Support different context path

#50, fix the build-screen goes 404 when access ex:) `http://master.pool.dev/path/to/something` includes context path.

I also add test for `hooks.rb` with using infraspec, and serverspec. 🉐