4-8: added search code for index action, 13-20: Added device notes and student search for adding students to a device from the device show page. 32: Added note creation to chronicle device history. 53, 59, 62, 67-68 & 73: added session :return_to to route back to proper page.