Added Message model, messages are now cached locally