large re-factor of code to keep stuff manageable

splitting up into multiple apps
also added json initial data