Puppet namespace goodies in class and defines

Added support for "guessing" the namespace of the current file as long as
it is defined in a module with proper structure.