Added karma plugin and refactored commands plugin and webserver