Puts API calls in their own module

Adds the mbapi module with methods to check if Flow is enabled, find userids
for page creators, etc.