Use ruby1.8 compatible syntax for hooks-receiver service

Adds support for ruby 1.8 by using the hash rocket syntax for port creation. Maintains ruby 1.9 and ruby 2.0 compatibility.
Fixes incorrect do .. else. They either need to be surrounded in {} if on 1 line, or moved to separate lines.
Additional information http://stackoverflow.com/questions/25899476/webrick-gives-error-unexpected-expecting-end