allow configuring db instance type, use db.t2.medium as default
various changes

* wait for tcp port available after modify
* try to dump 3 times in case of failure
* dump into tmp file and rename on success
* open dump file with O_EXCL
* add benchmark for some functions
* adapt for gocloud change (port is int)