Added event for API change

After API is changed the program must be restarted. Added events to
manage it correctly.
Merge pull request #28 from msavazzi/1.3.0.x

Added event for API change