Feature/use entities

* Updated composer dependencies.
* Added MessageHandler.