Added required shell interop functions for the next stages of the shell namespace extension code (the pidl manager), also created some basic tests for the new shell interop code.