convert DB_ constants to args with defaults, add functions for...

... installing composer, installing wp-cli. ensure test database is
dropped if it exists. document functions.