Reduce caption hardcoding

Now we can handle all types of captions defined in layout files or modules.
This does also mean that \captionabove and \captionbelow are only recognized
in KOMA-classes and not always anymore, but this is correct, since these
captions would not work in other document classes anyway.
Merge remote-tracking branch 'github/build-bot-master' into bleeding-edge-master
2014.12.27-18.00