Separate generic parts of api library into conversion package.
Make api use converter package.
Add documentation and tests to conversion.
Merge pull request #723 from lavalamp/splitApi

Split api package.