Naive lock and frontend improvements

- added naive lock which prevents redundancy
- ugly json-transformation of task delegated to template
- all data about task is available on frontend