data/xbps.bash: add more xbps-query properties.
lib/package_msg.c: fix a heap overflow (noticed by @Gottox).
Merge pull request #58 from uggedal/bash-completion-extra-properties

data/xbps.bash: add more xbps-query properties.
xbps-{install,remove}: print guards in post-install/pre-remove messages.

This avoids the need to manually add them to the {INSTALL,REMOVE}.msg
files in binary packages, and saves some bytes in the repository archive
and binary packages.

Idea by @dominikh.
NEWS: mention recent changes.
NEWS: another change.
xbps_file_hash: reduce memory footprint and process file in small chunks.

With xbps-rindex(8) -c/-r being multithreaded, the memory usage was
insanely high in the build server, with peaks of almost 4GB (this depends
on the file size being processed and number of threads).

Process the file in small chunks instead to compute the SHA256 hash.
lib/util_hash.c: update copyright year.
_xbps: complete properties
_xbps: drop use of sed
NEWS: mention zsh changes by @chneukirchen.
xbps-query: do not print ANSI escape codes if stdout is not a tty.
bin/xbps-install/fetch_cb.c: optimize: only call isatty() once.
xbps-install: abort transaction if there's insufficient disk space on rootdir.

The free disk space wasn't computed correctly and xbps-install(8) wasn't
handling ENOSPC rval in xbps_transaction_prepare().
NEWS: prepare 0.40.
Post release bump.
lib/util_hash.c: enlarge read buffer for xbps_file_hash to increase performance.