Basic stats model

ADD: simple stats model
ADD: readme
ADD: 'unload' event handler to prevent deadlocks for tasks