Refactored some functionality to Event

1. Replaced EventDisplay with a toString method in Event
2. Moved the isOverlap check to Event
3. Moved the getEventKey method to Event
Fixed an issue with BT not working
Refactored Maindeviceactivity getdata()
Refactor
Refactored BasicCalendar to use a sorted list

Made event implement comparable to make the sorting work
Added test for removal
Removed the getKey method

Calendar no longer uses a map to store events
1) Disabled landscape view for all activities. 2) Fixed bug: History graph now loads default label on first load. 3) Fixed bug: History graph now changes labels.  4) Fixed bug: History graph activity extends baseactivity and we take care of 403 error, if response is 200 we proceed to draw graph.
Merge remote-tracking branch 'origin/refactorMainDevice' into develop
Merge remote-tracking branch 'origin/issuehgdefault' into develop