                 doc.docType is 'Folder' or doc.docType is 'File'
             live: continuous
 
-        # Do not need rebuild until docs are added
+        # Do not need rebuild until docs are pulled
         needTreeRebuild = false
 
         # Set authentication

fs         = require 'fs'
touch      = require 'touch'
request    = require 'request-json'
urlParser  = require 'url'
log        = require('printit')
             prefix: 'Data Proxy | replication'


        data = login: options.deviceName

        getCredentials = (res, body) ->
            if body.error?
                throw new Error(body.error)
            else
                id: body.id
                password: body.password

        client.postAsync('device/', data)
            .spread getCredentials
            .nodeify callback


    # Unregister device remotely, ask for revocation.
