refactors & tests helpers
ignores intellij files
restores html servering behaviour
serves json properly