created TEMPLATE namespace

Working on some template classes that should serve as a base to all
manager, implementations, interfaces and messages.