HTML5 whiteboard fixes

Changes in the HTML5 client, mainly in the whiteboard, done during the hackfest 2013/04.