Well written! I think that potentially hideous code, putting together groups of injected code is one of the hardest type of component get right.
My background is in embedded and mobile so I usually expect a stupid OS or perhaps not even an OS at all (or perhaps writing part of the OS). Artificial restrictions is just silly tough.