Added API module.
Merge pull request #5 from iliabylich/add-api-module

Add API module.