Initial code release, barely tested
I've ran the code without errors by defining some simple send and receive callbacks, which did not use an actual API. Therefore, the script is not very much tested.