Removed redundant code of Menu/others

Removed the redudant code of Side Navigation Menu which was used in
each activity that had a menu. Did this by making a BaseActivity class
(with the redundant functions) and extending it where ever needed. With
this the network checking functions and some other small redundant
function like back press/ menu press were also taken care of.