Added functionality for cancelling a pomodoro and improved use of require.js in the automated test side