Search for the config dir in more places

Implement several different ways to tell clicraft which directory
it should use for its configuration. In order of precedence,
clicraft now searches the following places for its configs:

* The argument to the --config option
* The $CLICRAFT_CONFIG environment variable
* $XDG_CONFIG_HOME/foo, where 'foo' is how clicraft was invoked
* $XDG_CONFIG_HOME/clicraft
* $sysconfdir/clicraft

This adds a few other things along the way as well, including a
bootstrap.sh file for functions needed before functions.sh is read,
and proper options parsing.
Re-add --help and --version options

The previous commit broke --help and --version. This fixes it.
Add -V, --xtrace options

Add a -V option which is an alias for --version, and a -x|--xtrace
option for setting the xtrace bash option before running an action
script. If passed twice, -x sets xtrace as soon as it is encountered.
Let short options be smashed together

This lets e.g. `clicraft -xxh` be equivalent to `clicraft -x -x -h`.
Update help output

Add options to the help output.
Clean up temporary variable
Don't use backticks for quoting
Ensure locks are specific to a server

Make sure clicraft instances wrapping two different servers don't
step on each other's toes when trying to grab the same locks.
Separate CONFDIR and CLICRAFT_CONFIG

Use these two variables for two logically separate things. CONFDIR
is the system path that CLICRAFT_CONFIG uses as its default.
Document command line options

Change the syntax of the help output, as well, to match the docs.
Fix documentation

`clicraft edit` doesn't use example scripts as templates (although
it probably should), so remove information suggesting it does.
Document CLICRAFT_CONFIG
Remove extraneous line breaks from help output

This makes the help output a bit cleaner, but will need to be
reverted if we ever add i18n due to how fmt works.
Search bootstrap.sh for functions in check-docs.sh
Add `clicraft maint` example script

Add an action script for doing clicraft developer maintenance.
Currently this script dumps data to stdout suitable for use as a
minecraft regex database.
Update minecraft regex database

This was done using `clicraft maint` against a 1.7.5 jar.
Make shortopts() output all options

This fixes a bug where clicraft only recognized the first option
for a string of short options, so e.g. `clicraft -xxh` was getting
parsed as `clicraft -x`.