improved extension handling (does not check if extension is supported!)
added extension parsing support for writing frames (not tested)
reading and parsing extensions works now for single extensions