Add new deployment module and applies DRY to scripts.ci (closes #18)

Merged André Anjos requested to merge issue-18 into master

This MR only partially affects issue #18 (closed) by encapsulating deployment functionality into two new functions.

A new issue will be opened for the other half of #18 (closed).

Merge request reports