Code reorganization

Moved the API into a separate app. Wanted to rename the 'bongo' app to 'core' but apparently that's verboten.