Setup the package environment during load_rules()

 * We have pulled the environment setup from build-query and moved it into
   load_rules().  This means that build-query acts to query information about a
   package and is reserved more as a cmdline helper for external tools.  Tools
   that need package variables should use load_rules instead of
   'build-query --environ'.