anchor.diff:      root.endpoint = long_id
       save(root)
   
  -    if !window.root
  -      #TODO: destroy previous root component if it exists      
  -      window.root = React.renderComponent(Root(), document.getElementById('content'))
  -
     homepage : (params) -> 
       root = fetch('root')
   
  
positive.code:   save(root)
  window.on_client_error = (e) ->
    save({ key: '/new/client_error', stack: JSON.stringify(e.stack) })
  $(document).ready -> Backbone.history.start {pushState: true}
  
negative.code:     root.page_name = 'homepage'
      root.endpoint = 'homepage'
      save(root)
        
  
  window.app_router = new Router()
  window.on_ajax_error = () ->
  