Initial working version of tree file.
Added metadata handling.
Added a UI option to control number of events.
Merge branch 'fileformat-update' into python-interface
Added TreeReader object.