add support for manually specifying package to start/stop
refactor config to use json, fix some log copying