Using CMake to handle project compilation

Source code and proto files moved to src directory. CMakeLists file added to
project's root directory to allow out-of-source compilation.

Protobuf cmake module handles cpp code generation from proto files now.
Libev dependence added by hand.