Added razor precompilation and wait-on-startup tests.

Minor razor additions and fixes related to the added unit tests.
Modified in-memory file system behavior to match real file system behavior more closely, allowing for more code coverage in unit tests.