Split the project into three different subprojects

One for the webapp, one for daemon that updates the db and a
project with code shared by the web app and the daemon