Implemented BaseActivity

All Activities with the exception of LoginActivity are a child of
BaseActivity. BaseActivity implements the functionality to enforce that
the user has to be logged in. Also the BaseActivity contains the
SharedPreferences that is used to share flags application wide.