Fixes issues #44 & #45

 - Adds [unstable] attribute to public functions
 - Adds a to_raw function in Protocol
 - Adds error contants to libnanomsg