make imenu items for enterprise application

- better algorithm to create more imenu time
- configurable for any template (jsp, freemarker, php ...)
- see https://plus.google.com/110954683162859211810/posts/XvQcG6k8G61 for screen shot.