Move the activity loading to the API. Add the visitors to the activity.
Added a test for the function that was moved into activitiesAPI.