Guess namespace from the calling context

Alternative PR to #20.  Instead of the extra argument, the context is extracted from the call stack.