WaypointManger : Write event implementation

Add:
1. Call doWaypointEvent upon uploading waypoint to APM
2. Call doEndWaypointEvent upon uploading the last waypoint to APM

Fix:
Change doWaypointEvent ‘count’ argument from short to int