base: fix static files serving from DocumentRoot

* Implements Nginx's "try_files" like functionality using custom wsgi
  middleware for Apache and WSGIScriptAlias for invenio.wsgi together
  with mod_rewrite.

* NOTE regenerate your apache configuration by running
  `inveniomanage apache create-config`.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Tested-by: Yoan Blanc <yoan.blanc@cern.ch>
base: wsgi middlewares reorganization

* Fixing DebbugedApplication middleware usage.

* Using an Apache environment variable to detect when to apply
  the WSGIScriptAliasFix: `WSGI_SCRIPT_ALIAS` pointing to the
  script name.

* NOTE regenerate your apache configuration by running:
  `inveniomanage apache create-config`

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
Reviewed-by:  Jiří Kunčar <jiri.kuncar@cern.ch>
global: kwalitee fixes in invenio.testsuite

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
base: eval is evil

* Using ast.literal_value instead of eval to parse user provided values.
  Safer and more reliable (bool("False") -> True)

* Removing the checks that the new type corresponds with the known type
  for the value.

* Adding some tests and invenio.base to the base set of packages.

* Using sets for the packages list to be tested.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
global: to be removed.

* lorem ipsum dolor sit amet.

* travis travis travis...

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>