Make some type_traits throw msgpack::type_error.

All type traits should throw msgpack::type_error instead of std::bad_cast.
Fix raft logs format.

All logs in the cocaine should be lowercase. Also new structured logs are used.