Change the communication library from dbus to thrift
Add magic comment and remove unnecessary files