[idl-generator] Automatically generate java and js

1. Add templates for generating java and js of Crosswalk Extension
2. Change generator scripts to adapt extension
3. Add script for utilizing generator scripts
4. Add an example showing how to use generator