New user rest APIs

I moved this method to the helper->connector.php. I created a new helper method get_courses_where_user_is_enrolled($userid, $startdate = null) in the connector.php.