complete rewrite, remove build-couchdb dependency
re-add automatic building of mac app