Refactored project

Forked project from https://code.google.com/p/tuxeip/
Converted source to c++