Improved error management

In essence, it just adds a class to place all server messages returned by the server in a centralized place.

Closes #12