Add reconnecting event and relevant test

@guille A pull request to make a Manager emits 'reconnecting' event when trying to reconnect. Also a test case is included :)