Fix call for getting queue
Implement HTTP API for getting queue and download based on JSON request
Refactoring, cleaning up and adding a bit of types and comments
Add skeletons and deps for tests
Refactoring plugins API for CLI and HTTP
Move process info funs into utils

Used currently only by statman