Miscellaneous fixes

Fixed readonly issues (related with https://github.com/ajaxorg/ace/pull/1205 ) and other problems.

By the way, anybody likes such tooltip style: ?
![tooltip](https://f.cloud.github.com/assets/1527097/93641/2e9f3d9a-662e-11e2-90b9-db3446e0b113.png)