Pat now can be run as a Cloud Foundry APP

To test:  change 'cf_pat' to be the default branch in settings

Current limitation:
- Real push doesn't work, yet to identify the problem.
- History is lost on server restarts / crashes