Use new otr.js release 0.27
Move mock.js to tests dir. Add utils.js

Both changes from tests-refactor branch