CSS and JavaScript issues

I change several things in CSS and JavaScript:

- I convert scripts.js to ui.coffee and refactor some inappropriate
  functions.
- I rewrite the project-show.js and report-sales-journal.js in
  CoffeeScript because it make changes on them.
- I remove the jQuery select menu in favor of the better selectBoxIt
  library which is more convenient when testing.
- I rewrite some CoffeeScript files to use the new jQuery event handling
  with on() instead of bind().
- I abstract the window.confirm() and window.alert() calls and implement
  it as $.confirm() and $.alert(), respectively.  This allows to use
  different confirm and alert dialogs such as provided by jQueryUI.
- I fix some CSS problems in the search field in the page header and
  also removed the unneeded hint() function in favor of the placeholder
  attribute.