update chat to use a model.sort filter instead of rendering the query results directly

this means that chat messages get displayed right away when entered,
even when offline
remove files
update derby