Mostly compilable state of websql refactoring.