Implemented logic for deleting an API

- This patch implements the logic necessary to delete an API module. If
  the "recursive" flag is sent with a value that evaluates true, then a
  recursive deletion of the module is made; otherwise, the entry for the
  module is simply removed from the application configuration.