Webapp big refactor

#348
lack of documentation