adding message history controller
adding check for ajax
Merge pull request #21 from ryanbahniuk/message_history_api

adding message history controller