general: add Grunt and Bower

* allows to install all the static files under invenio/base/static
* all the files are served without symbolic links
* npm install
* bower install
* grunt
* grunt clean # clean all the installed dependencies
* added instance/ in .gitignore
records: tab switching events

* When tab switching is initiated, the "tabreload" JavaScript event is
trigerred, and when the tab is completely switched, "tabreloaded" is triggered.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
Merge pull request #140 from adrianp/poo

records: tab switching events
record: redirects invenio/record/ to invenio/

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
Merge pull request #141 from adrianp/poo

record: redirects invenio/record/ to invenio/
search: clearer collection name in search pages

Reported-by: Tibor Simko <tibor.simko@cern.ch>
Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
Merge pull request #143 from adrianp/poo

search: clearer collection name in search pages
Merge pull request #139 from giokokos/pu

general: add Grunt and Bower
testsuite: python 2.6 fix (closes #135)

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
Application factory cleanup

* Cleanup Flask application factory to make application
  assembly more clear.
Package order aware template loading

* Adds Jinja2 template loader that respect template loading
  order according to the PACKAGES configuration. This is needed
  for overlays like Inspire and Zenodo to customize e.g.
  'page.html'.
template: fix jinja loader order awareness
template: tests for template order loading
Merge remote-tracking branch 'adrianp-github/pu' into pu
session: fixes login when no cache backend exists

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
requirements: version bumps

* Bumps MySQL-python and beautifulsoup4 to newer versions.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
template: add page_base.html

* Renames page.html to page_base.html and creates new page.html
  to allow overriding of main page template on a Invenio instance.
Merge remote-tracking branch 'jmartinm-github/pu-base-template' into pu
requirements: broken pypi links fix

* Packages removed from pypi have now direct links; this is only a temporary
solution.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
Makefile: plupload download link fix