Currently most of the C++ apps iterate over the user map to decide the closest user, active users etc. We should extract the common functionality from apps and rethink what API's should be exposed in the base class so that it is easy for the apps to use gestures and user data.