bee-init: Add options --pkgextraname and --pkgprefix

Add options --pkgextraname and --pkgprefix to influence naming of bee-files.
beecut: exit if getopt_long_only returns an error

beecut now exits if an unknown option was given or an argument was missing
bee-check: fix reading the CONTENT file and the filename handling

there were problems if a filename contains spaces

replacing the for loop and always quoting the arguments fixes this issue
bee-query: fix reading the CONTENT file and the filename handling

there were problems if a filename contains spaces

replacing the for loops and always quoting arguments fixes this issue
beegetopt: free memory before exiting

beegetopt is leaking memory if BEE_GETOPT_ERROR occurs

the variables beeopts and beeoptptr are now freed before exiting
bee-check: declare bash functions with keyword 'function'
bee-query: declare bash functions with keyword 'function'
Merge branch 'fixes' of https://github.com/ruester/bee

* 'fixes' of https://github.com/ruester/bee:
  bee-query: declare bash functions with keyword 'function'
  bee-check: declare bash functions with keyword 'function'
  beegetopt: free memory before exiting
  bee-query: fix reading the CONTENT file and the filename handling
  bee-check: fix reading the CONTENT file and the filename handling
  beecut: exit if getopt_long_only returns an error
beesh: Change sourcesubdir handling

add functions to set, append or prepend source subdirectories.

add_sourcesubdir is now deprecated in favor of sourcesubdir_append
beesh: Add functions to extract tar source archives
beesh: Improve filename guessing for fetched source archives
beesh: Minor cleanup
beesh: Add generic extraction functio bee_extract_do
beesh: Change the way source sub directories are handled

$S now points to the $W/source/souresubdirectory
beesh: Add support for zip source archives

To emulate the strip-components behavior of tar we scan
the extracted sources and prepend a sourcesubdirectory
if the archive is extracted into a subdirectory.

This is a much cleaner solution then to strip components out of
pathnames within the archive.

So tar extraction should be changed too in the future.
Merge branch 'zip-archives'

* zip-archives:
  beesh: Add support for zip source archives
  beesh: Change the way source sub directories are handled
  beesh: Add generic extraction functio bee_extract_do
  beesh: Minor cleanup
  beesh: Improve filename guessing for fetched source archives
  beesh: Add functions to extract tar source archives
  beesh: Change sourcesubdir handling
beesh: Fix fatal typo in sourcesubdir_append()
Merge branch 'fixes'

* fixes:
  beesh: Fix fatal typo in sourcesubdir_append()
cleanup: Add functions to wrap bee-tools to increase readability
Merge branch 'cleanup'

* cleanup:
  cleanup: Add functions to wrap bee-tools to increase readability