fallback: better way of setting fallbacks, check for 'resolve_refs' method on the handler
and pass handler_dict if one exists
tests: add integration tests for $liveweb rewrite handler and replay
with fallback
pep8 cleanup pass