set up karma and saucelabs, fixes #1, fixes #2