Added mocha and jasmine support

Added support of mocha and jasmine frameworks to browserstack-runner. Jasmine does not have a "after" functionality so added a one second poll to check if the tests are done running. For Mocha, no such mess was required.