Have the API understand gzip
Moduralize; more testing
Move constants to more relevant places