Feature/rails3 refactor more functions menu

- extract the more functions menu js code into a separate js file
- make unobtrusive JavaScript work in the menu
- some minor refactorings in application.js