make deployable to cloud foundry

This mainly involves:
* pull web tier into (RESTful) services tier (temporary to avoid cross-site scripting issues)
* add spring-cloud to facilitate service binding
* configure hibernate to use mysql dialect