Modularize apis and services.

- An api can be added by adding an entry to ApiModule
- A service can be added by adding an entry to ServiceModule