initial commit after rails new ember-rails -d mysql

no changes to what was auto-generated
add README.md and remove README.rdoc (rails generated)
setup root route for ember controller and simplest page
setup asset pipeline with ember and structure of ember#index page
initial application: create NavController/NavView and render a simple nav view

setup structure:
* where templates go
* create Ember.application
* controller and view for the navigation

Note that we minimize what the Ember.Application.create call needs to be aware
of.  Don't want every change to have to touch this call/file.

Note also we call this._super() when we override the view's init() method.
Else, it won't render!  The init() method is invoked automatically on
Ember objects when created.
nav view with binding

Notes:
* if we try to attach the navView inside the init() for navController, then
we cannot bind the view to the controller.  The problem is we want to set
the binding using some globally accessible path, eg Example.navController.content
But, inside the init() for navController we still have not assigned to
Example.navController.  Attempting this yields an exception "Must use Ember.set to access this property"
So, we moved the attachNavView() method call to be done explictly in Example#ready()

* we created some added complexity in NavController using a closure to define
addRandomElement in order to make it accessible in a setTimeout.  Could probably
have used some jquery mechanism to setTimeout with a bound version of a instance
method on this class (binding this to the navController instance, instead of
the window).  Our point was just to show that we can add to content and
the view auto-updates (via the binding).
click link on left to display appropriate content on right

* add a click handler to navView
* add contentController and contentView
* clicks invoke contentController.selectLink(link) to indicate the meaning
of the UI action.  the view does not know, nor care, how to accomplish the task
update the page title when link selected

shows how we can easily make multiple things change when the selected link
changes
Add sorting and filtering

Notes:

* use a LinkView for each link in navView to simplify click handling

* made NavController an ArrayController.  Basically, this lets us call
pushObject on the controller itself, and would allow us to use the controller
instance in a {{each}} or {{collection}} without having to reference .content

* we bind the navView to a computed property sortedLinks, which does sorting
and filtering.

* in sortedLinks, it is vital that we call toArray() on this.get('content').
I don't understand why, as the sorting seemed to work even without, but the
view would never update.  Need to investigate more.

* in sortedLinks, it's important to depend on (eg pass to .property())
"content.@each".  Otherwise, it will not refresh when items get added
to the array.  I assume this is because content itself is not changing, in
the sense that it points to the same object instance, but it is the contents
of the content array that is changing.

* in NavView, maxTextField is a class (we use .extend) but it has a lowercase
first letter.  Ember cares about case (of first letter) to determine whether
to evaluate in the global namespace (eg "Example.navController") or to
evaluate relative to the current "this" context.  So, in nav_view.hbars,
the context is the navView instance, so we reference "maxTextField" to refer
to the class defined therein.  If capitalized, we would have to provide
a full path from a global-namespace object to it, like
'Example.navController.navView.MaxTextField'