Complete API v0.1

Finished the basic API with internal and external functionalities. Added
MySQL support and extension.