Added support to NewJsonRpc to return an error as well as an interface

Also changed default port to 8080. Fixes #18