Get defaults from settings

Implements issue #26 and 'context aware' redirects