Improve file name handler.

Implemented a better solution for file name generator and added
mousetrap on editor page.