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

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