Beginning work on Quote-of-the-day (QOTD) Feature for OPAC

This feature will add the option of displaying a select quote
for the day on the OPAC homepage. It will include the addition
of a QOTD editor in the tools section of the staff interface
which will allow the addition, editing, and deletion of quotes.
A single system preference will enable/disable the display of
the QOTD on the OPAC homepage. A new granular permission will
also be added to conrol user access to the QOTD editor tool.

Possible extentions to this would be code to allow alternate
quote selection algorithms to be added to vary how the currently
displayed quote is selected from the table of quotes.

This patch is a squash of the following work:

Adding quotes table to kohastructure.sql and updatedatabase.pl

Note: This patch is intended for a MySQL based installation only.
That means that it includes backticks because that is what is required
at this point in history to install Koha correctly on a MySQL based
installation.

Feel free to port this over to the Pg stuff in the data/Pg directory.

Adding system preference to control display of QOTD on OPAC main page

Adding sample quote data

These quotes are taken from various US presidents. I'm not sure these
are applicable to the rest of the world, so I'm leaving it to translators
and others to add sample quote data for other languages.

Adding edit_quotes user permissions

Squash with other db related patches in this series

Adding quotes editor pages to tools

Adding QOTD editor link to tools homepage

Integration of DataTables into QOTD Editor

This includes only the table generation; jEditable to be added
next to allow quote adding and editing directly in the table.

Impleminting jEditable into the quote editor

Adding delete and add option to editor

Fixing OPAC display so the QOTD div does not show if no quote is returned

Also removing useless code from tools/quotes.pl

Adding spans around QOTD foo in opac-main.tt

Also fixing quote selection logic to accomodate the possibility of
a single quote in the db a litte better.

Changing timestamp column header to a more user-friendly 'Last Displayed'

Fixing bug in quote selection logic

This bug caused a situation where when the table had only a single
quote with an id greater than 1 in it, no quote would be selected.

Fixing up sorting in the quote editor table. (Thanks to jcamins for pointing out that this did not work.)

Overriding the default empty table message supplied by datatables-strings.inc

NOTE: Someone needs to verify that this local string is translatable.

http://bugs.koha-community.org/show_bug.cgi?id=7977
Beginning work on QOTD uploader

This series will add a DataTable's based upload/editor with which
to upload csv files containing quotes to be used by the QOTD
feature.

The file should be formatted thusly:

"source","text-of-quote"
"source","text-of-quote"
...

Note: This work serves as a good example of potential improvements
in all other "editor" and file upload areas of Koha.

This patch is a squash of the following work:

Adding code to parse CSV file contents and push it into a DataTable

Adding in jEditable to enable table editing

Adding ajax to post data back to the server to be saved

Fixing edit and adding delete functionality

Adding some missing css as well as server feedback on save

Fixing a bug which limited the number of quotes which could be uploaded

Also fixing a minor bug with fnCSVToArray and doing some style cleanup.

Adding sanity checks to verify file type and size

http://bugs.koha-community.org/show_bug.cgi?id=7977
Misc UI improvements to both the QOTD editor and uploader including a number suggested by jcamins

Also removing a debug warn

http://bugs.koha-community.org/show_bug.cgi?id=7977
Major JS cleanup and misc improvements to the quote editor

Adds missing page heading... thanks oleonard.
Adds beginning of click-for-help elements.
Refactors delete functionality to allow selecting of quotes to delete,
    enabling multi-delete.
Refactors saving added quote functionality so that striking <Enter>
    saves the new quote.
Refactors canceling aded quote functionality so that striking <Esc>
    cancles the new quote.