Removed legacy code

Removed the legacy code which handled sessions and db configuration.
Added public method

Added new public method update_calendar_managers, create_user,,
get_random_string.
Added new method

New method get_contact.