Added support for events and updated license to LGPL v2.1+