Path redirection

Closes #56

@rcrichton if you could please review?