Add ability to recover object instance from dict/json.

@tylertreat