-`import Save from '../models/save'`
-
 utf8_to_b64 = (str) ->
     btoa encodeURIComponent escape str
 

    findQuery: (store, type, query) ->
        throw "I DIDN'T IMPLEMENT THIS SHIT"

    createRecord: (store, type, record) -> new Promise (resolve) ->
        key = guid()
        value = serialize record, store.serializerFor type.typeKey

        localStorage.setItem key, value
        resolve()

    updateRecord: (store, type, record) -> new Promise (resolve) ->

    object

guid = (->
    s4 = -> Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1)
    s8 = -> s4() + s4()
    s12 = -> s8() + s4()

    -> s8() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s12()
)()

Promise = Ember.RSVP.Promise
