Refactor karma configuration and add support for travis and sauce