Implement ToDynamo/FromDynamo functions

These functions convert in memory objects to and from DyanomDB
attribute value objects.

Reference: http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html