Container extensions

Refactoring the containers Api to introduce definition classes
Separate file + move from NSB namespace