import BSD license str2argv from: https://github.com/ryanflannery/str2argv
Introduce pkg alias

To use it add the following to pkg.conf:
alias:
  leaf = query -e "%a == 0" "%n-%v"

now pkg leaf will do the equivalent of:
pkg query -e "%a == 0" "%n-%v"

Fixes: #324