Oms 326

Now it's safe to merge. Added some generic profiling aids and root object profile for demonstration purposes. Activated with verbose profiling config option.