Tutorial from http://blog.wercker.com/2013/08/07/building-an-api-with-golang-rethinkdb-wercker.html