Added a lot of stuff to implement dojo custom build. But still not yet there...