Fix exceptions: base all off of `Exception` rather than `StandardError`.
Redundant ping code.
Added to_dict().