Allocate buffer for websockets message
Merge pull request #656 from Metaswitch/issue655

[Reviewer: Matt] Allocate buffer for websockets message