Auto hide properties button and enable/disable checkboxes and buttons based on current state.

Fix tabs layout in bootstrap2 theme.
Fix direct link in demo for no iconlib.
Standardize layout of properties modal.
Make properties modal height shrink if there aren't a lot of properties.