move librpc to common

Change-Id: I5e5372e7f8053a571ffc922720dc1eec04f54b98