Server: Append injected scripts to body instead of head

Any setup that loads QUnit in the body instead of head will timeout out
otherwise.
minor modification to support mocha
Merge pull request #86 from browserstack/pr/83

Pr/83