REST webservice in Golang, based on http://geeklit.blogspot.com.au/2013/08/gorest-golang-web-services-simple.html