Nixpkgs manual: update the section on license attributes to use lib.lice...

...nses

The nix-env query example which previously used --meta --xml has been
changed to use --json so that the license metadata is included, see
NixOS/nix#288 . Catch-all licenses have also been added to
lib/licenses.nix since they may still be useful.

See also: #2999