Fix to handle subdomain as git-commit-id inside pool

- Fix hook.rb and build_server so that it does not create
  another
  container if branch name is given.
- Fix Dockerfile to test builder gem while building
  the container
- Refactor hook.rb