move MESSAGES
refactor js into some semblance of classes; add direct message support to the server