WebStorm compatibility

Hi!
I've fixed compatibility issues with WebStorm and other IDEA based products.
There were two sources of problems:
1. No specified dependencies in plugin.xml caused WS to consider ScriptMonkey a legacy plugin and skip loading it.
2. Some deprecated API calls that work in IDEA but fail in other products.