Complete conversion to Coffeescript. All bugs fixed AFAICT.