Standardized toJSON, fromJSON, toString and fromString interfaces

See G6 https://github.com/bitpay/bitcore/blob/v0.8/CONTRIBUTING.md#g6---general-naming-utility-namespaces