Split your app into five modules: core, persistence, service, binding
and webapp