split base from init.pp, and simplify the variable declaration and lookup by merging bcd::variable with the main class (so we can directly say bcd::login instead of using bcd::variable )