Removed dummy data in the History page
Limited results by username and also imporved error handeling for ajax calls when not logged in
Removed the stubbed out direction from the return of a weigth reading.