make imenu items for enterprise application

- better algorithm to create more imenu time
- configurable for any template (jsp, freemarker, php ...)