Remove context from dispatches.
Use protocol instead of structs to represent cluster change commands.

Commands of a state machines are represented with cocaine io protocol. Actually cluster configuration is a state machine, so its commands are also represented with protocol now.
Service counter replies with usefull error codes.

Service counter replies with raft::command_result, so client can determine, what type of error has occurred and where is the leader now.
Merge pull request #80 from andrusha97/raft

Raft
Fixed warning about unused private field.

Because of we treat warnings as errors it results in compile error.
Codereview, part one.
Service resolver no longer requires `context_t` object.
Merge pull request #81 from 3Hren/master

Fixed warning about unused private field.
Add method to retrieve status of Raft node.

Now it's possible to discover if a node is follower, candidate, leader, or it even hasn't joined a cluster. This information is usefull to monitor cluster state.
Typo.
Add proper includes.

Classes in forwards.hpp use boost::optional and boost::variant, so corresponding headers should be included.
Fixed RHEL6 builds.
Fixed a missing return statement.
Don't run reactor from two threads.

Each actor creates own thread and runs its reactor there. So passing one reactor to two actors is a bad idea.
Merge pull request #82 from andrusha97/raft-monitorings

Raft monitoring