rosterOffline implementation part 2

Fix build and access violation issues. Test rosterOffline. An option to
switch between showing both and just online ones would be required. Need
to optimize code in RosterPage to remove the old one.
code