WIP: feat(init): generate test-main.(js/coffee) for RequireJS projects

I am working on issue #869. It still needs a lot of improvements and even tests. I really appreciate any suggestions.