Application menu and time entry editing form fixes

Here is some other fixes:
- hide Contracts link from application menu when user does not have a permission to view contracts for any of the projects
- do not add Contract select to time entry editing form when there is no any contracts for current project