Moved the endian writing stuff to the new class EndianWriter.
Added the different events message, meta and sysex (all stubs,
where message should have only the most basic functionality. Some
circular dependencies were resolved.

Players now recognize the generated file, but they do not play the
added notes (as they should) so there is still a bug in that, which
I cannot find at the moment.