Context menu fix

Context menu will not go below bottom of screen
TODO: display menu above mouse when there is no space.
Context menu works

Works as it should.
Fix

Now menu takes care of offsets.
`Next time double check what you are commiting.`
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.
Few bugfixes

codiad.editor.resize() is not working as I expected
Sidebar + Modal dialog fix
Context menu fix

Context menu will not go below bottom of screen
TODO: display menu above mouse when there is no space.
Context menu works

Works as it should.
Fix

Now menu takes care of offsets.
`Next time double check what you are commiting.`
Merge branch 'master' into patch-2
Merge branch 'master' into patch-3
Merge branches 'patch-2' and 'patch-3' into my-tuning