Refactor sync and storage into DataStore

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>