Added support for setting height and width along with refreshing editor when ever it is detached from document and attached again. Added support for formatting code however it is buggy as per orignal comments from Marijn of code mirror. Hence its been discontinued from 3.1 release. Added support for firing on blur event.