Added basic storage layer to the API module.

API endpoint modules can now store & retrieve their own data using `api.set` and `api.get`