Block settings and page template editor

Handle default values in block settings.
Add cache configuration in block settings.
Handle the 4 visibility classes of bootstrap 3.
Misc enhancements in page templates editor.

Fixes #495, #641