More improvements for Boolean Charts

* Save them upon browser history navigation using onbeforeunload event
* Allow to delete charts with JS
* Remove incorrect margins between buttons