Added indexes for the machine events to get them by date descending. Added a menu option to access machine events. Refactored the bring machine online form so it can be reused as a login to machine form as well.