Block elemement enables double click select

Copying the API token is nicer if you can double click select it. Now
you can.
Autofocus on first input in register/login
Delete test case stuff separately to speed up report deletion

Due to :dependant => :destroy deleting really big reports is insanely
slow. Since we don't have report information on meego_measurement and
serial_measurement they cannot be deleted fast using ActiveRecord.

Decided to add functionality that will first destroy test case attachments
(because the files need to be removed from disk), then deletes the
measurements using raw SQL so they're removed quickly and finally deletes
test cases by report ID which is also really fast.

Report, report attachments, and features are removed via the dependant
chain as before because there are not that many of those.
Moved measurement deletions to respective models
make the date configurable

make the date format configurable in the report info box
Test measurement and report counts after deleting
Merge branch 'report_delete_performance' into dev

Report delete performance increase. Instead of deleting cases,
measurements, and attachments of a report via the :dependent chain, delete
them manually first and then delete the report.

For a test report with 20000 cases this change reduced delete time from
100000ms to 800ms on the current development machine.
Merge branch 'dev'

Report deleting performance improve, minore UX improvements.
Added Capistrano task deploy:logrotate

Added task for creating a logrotate config to remote server which can
optionally cat the file to /etc/logrotate.d (using cat and tee to make it
easier to enable passwordless sudo execution).

This is a one-time thing so it may not make much sense to enable creating
the file without password, but in case that's an option then add e.g. the
following to remote server's /etc/sudoers file:

Cmnd_Alias QAREPORTS = /usr/bin/tee /etc/logrotate.d/qa-reports
user-account ALL=(ALL) NOPASSWD: QAREPORTS
Merge branch 'dev'
Check for profile and release params in API

If user sends parameter release or profile with string content the
report handling will fail because those will be used and not model
instances.
Enable whitespace and % in platform (% for url encoded whitespace)
Merge remote-tracking branch 'kontio/config-date' into merge-config-date
Upgraded fileuploader to 2.1.2
Added parameter expected by fileuploader

Added parameter success to response JSON since fileuploader expectes
one, and if it does not exist it considers the upload failed for unknown
reason.
Improved error handling, use new fileuploader

The upgraded fileuploader returns a slightly different JSON response so
changed code to read from correct parameter.

Also added valid file extensions and an error message handler that will
add/use existing formError element to show information about invalid
file extension instead of uploading it happily.
Fix fileuploader response handling

Upgraded fileuploader returns a slightly different response. Still need
to fix handling of this.element
Set success to false in case of errors
@element -> @_options.element

New fileuploader stores options under this._options
Check for original_filename instead of path

If we check for original filename instead of path both StringIOs from
fileupload.js and ActionDispatch::Http::UploadedFile can be handled
succesfully.