fix typo

It's amazing how misspelling the word "length" can derail your day.

The search function works (not very smart, but it does), and is now case insensitive.

In addition, the user is rerouted to the search results page upon a successful search (as opposed to the prior behavior, which was to be redirected if the search resulted in an error).  

The last commit (0ec022f) makes changes to the search results controller (main.js), search results factory (services.js), and search results view so that the view displays the search results.  (I can't tell exactly what's going on because the formatting is off the left side of my page, and we don't have any actual images, but the data is at least getting there.)

A remaining bug is that if searching from the main page, the user is redirected but the results of their search are not displayed.  If searching from the search results page, the results are displayed.  I'll try to look into this a little more later. 

It also adds the "select piece" function to the pieces that are displayed in the search results view.  That function isn't working correctly, but I'm not sure whether that's because we don't have any images yet.  It is getting the correct id from the view.

It's all still pretty messy; I haven't cleaned up the code.