Autosave on compile and clean up whitespace on save

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>