added big commented out method

to read extended elements in appinfo. it's not needed now, but maybe
later.
Added enums for type and platforms

fixed some EOF checks on binary readers, because binary reads don't
actually (always?) throw EOF exceptions
eliminated most calls to Stream.Length because it's incredibly slow on
some stream types