converted chat_message.js and chat_history.js to Angular models (fixes #29) + updated the corresponding tests (fixes #30)