I actually think the way they are doing it is now is quite good. The underlying framework and API are all open source and free to use, but they charge for what seems to essentially be an IDE.
You're free to develop apps with their framework for free using your text editor of choice, and if you really want you can write your own IDE and other tools on top of their framework to ease development. However if you want to use their IDE you have to pay.