Move storage functions to Ecto.Storage

Closes #182.