Prepare for unit test framework. gpTasks now use Ref<> Ptr<> etc.
Using Ptr<> etc un Application now
Removed usages of Ptr<> due to some limitations of them