api, event api, and team api corrections

Changed userId to loginId in api.php. Added more to event and modified
team.