PopIt API code - can be used as a standalone PopIt/Popolo API server or embedded in an Express website