         if method is 'read'
             $.getJSON('/ajax', apply_diffs)
             $.getJSON('/ajax/issues', set_issues)
+            $.getJSON('/ajax/directory', set_directory)
         else
             legacy_sync method, model, success, error
 

    model: Issue
    url: '/ajax/issues'

class DashboardView extends Backbone.View
    className: 'dashboard-view'
    template: Handlebars.compile $('#dashboard_view-template').html()

    update_data_streams: (datastreams) ->
        timestamp = new Date(Date.now())
        
        for stream in datastreams
           stream.update(timestamp)


    window.namespaces = new Namespaces
    window.machines = new Machines
    window.issues = new Issues
    window.directory = new Directory
    window.events = new Events
    window.connection_status = new ConnectionStatus

