Initial work on managing the number of open chat boxes
Date handling is now done with moment.js