Full implementation of backend

Backend is now fully functional and can process all messages that are
required;