Added events service
Added apiBase variable