Updated the Unit-tests to testing publish and cleaning up after running. Fixed issue in user-delete.

The API will always receive the user-id as an string, but it is stored as an integer, so you would end up having 1 === '1', which failed.
Merge pull request #110 from fangel/feature/add-oembed-endpoint-for-charts

Improve unit-tests for API