2013-11-26 **More tweaks to the custom template and incorporated last changes from seblucas **

eInk style added since it is now also mostly done, minor tweaks may still be needed.

changed util.js to use a FontAwesome icon (undo) since _CLEAR_ always ends up at the end of the list, making it jump all over width of the screen when filtering on tags. With an icon it always appears as first option. Also changed updatePage to have the window title reflect the page name.

changed header.html to also assign the icon classes to the icons themselves so both container and icon have known dimensions.

experimented with alternate alphabetic sort icons. No success, too little visual difference between ascending and descending icon. Commented out the test html in case anyone wants to confirm themselves

changed the footer in the custom template to have a First and Last page icon if we are on pages 3 to Max-Page-2. Since there is no need for a First icon on page 2 and no need for a Last on the previous to last page, they will not show on these pages. This also requires changes to book.php(getJson) to generate links for the first and last page icons and to the language resource for the Alt texts on mouse hover.

added functions getFirstPage and getLastPage functions to base.php. first page link is only returned starting from page 3 (no use for one on page 2) and last link will return links until it is on the second to last page (no use for one on the page before last)

Changed paginator styling so page numbers are always in the center, regardless whether or not first or last page icons are showing

removed the inline style for sort and search forms and moved these to the CSS file. At least this way I can override rules as needed.

plus a load of tweaks to the template styling, and restructured the base stylesheet in a structural and makeup section so all of the color and shadow effects is together in one place, making it easier to create overlays.