Changed the integration registry into a real singleton independent about its instantiation by other classes

Added copyrights
Reformated code
Rearrnaged code