Very simple core library for event driven applications