Added thrift support and integrated existing stuff into it. Moved main() method from main.c to emMotherboard.cpp