Implement cookie for go, inspired by tornado