cherrypick upstream cubescript fixes
add entities and ambient lighting tools
fix hbrushselect