Fix boolean HTML attributes

Fixes getkirby/kirby#134 by returning the name of the attribute without the integer value when the value is a boolean.
Small code clean-up
Merge branch 'lukasbestle-fixbooleanhtmlattrs' into develop