Bug 678037 - Enable lazy JS parsing and fix various bugs, r=waldo,evilpie,nobody.