Generic REST server in Go for accessing MongoDB