alanoe/improve kickstart templates handling

- Refactor code
- Remove (afaik) useless code
- Make kickstart/snippet behavior consistent in web UI