Added some Code Contract statements
Fixed support for using intermediary files as input for apply-stylesheet.
Added additional unit-test.
Added Caching helper.