WebUI and code cleanup

Signed-off-by: Emilien Kenler <hello@emilienkenler.com>