Merge pull request #462 from j000/issue-330

Fix for Issue 330
Few tweaks

Another few tweaks. Still stuff todo.
Sidebars now remeber settings

With this commit sidebars remeber:
* left sidebar width
* if left/right sidebar is opened/closed
They can restore state on codiad open, but in dirty way.
Merge remote-tracking branch 'upstream/master' into patch-2
Few bugfixes

codiad.editor.resize() is not working as I expected
Sidebar + Modal dialog fix
Merge branch master into patch-2
Merge branch 'patch-2' into my-tuning