Refactor api/rpc_types.[c|h]
Since we are using Thallium for serialization, api/rpc_types.[c|h]
now only affects the C part of the library code. This means that it makes no sense for these source files to be in the common/api/
subdirectory, or its CMake target to be shared by the library and the daemons.