Cmake build system

Hi.

This pull will replace autotools-based build system with one using CMake, without any loss of functionality.

I've made a lot of renaming to make it look more structured (imho).
Python-related sources were tweaked to work on both python 2 and python 3.

Hope you'll find it useful.