Improve debug api + add test cases
Merge pull request #13 from karma-exchange-org/improve-debug-rest-api

Improve debug api + add test cases