Factor common functionality into a separate file

The functionality that is shared by all PA commands should be placed in
a single file in order to keep the code DRY.
Add Dropbox set up script