Add web mvc common utility
Some refactoring and renaming