Introduce JsonLdSerializable interface and make everything serializable

This addresses #15.