Removed ability to have # hashtags in room names (as we are using room names in the URL)
Improved stability of @dcgauld's history code