Move some of the api stuff into the module file with Drupal formatting.