Add event system to lib, move source directory to the proper place