Add messages controller

It closes #20