Fix function name to prevent one method from overwriting the other one

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
Use python-memcahe as backup for pylibmc

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
Add reverse proxy configuration

If Lernfunk3 is running behind a reverse proxy, it is quite possible
thaz it is not available from the root path but from a subfolder like
http://example.com/lernfunk/...

This patch enables Lernfunk to handle such requests by removing the
prefix introduced by the proxy from the request data.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
Major SQL cleanup

This patch removes a lot of unnecessary and partly even dangerous SQL
code like use statements, drop statements, unused delimiter, …

Furthermore, the preparation tables for media and series (latest and
published) are removed as well as all related triggers and are replaces
by views. This brings a lot more flexibility and clarity with almost no
loss of speed.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>