Module interface is now a function taking an express app; added response formatting