Removed some unused code and cleaned up a bit.
Changed constants in aos_rpc.h