Fix 1046 (part 1)

This branch fixes links in absolute mode.

It also makes ```nikola check -l``` do the right thing in absolute mode.

Missing for a complete fix of #1046:

 * Fixes for full_path mode
 * Fixes for the canonical links in the templates (they are wrong in absolute mode)