Make jsonrpc a separate library

Change-Id: I80d0a16fb470d27b7eb7fa1ac3cf3d1cfa8f611e