Improve operation tracing
Improve the "folder vs. file" test when deciding whether to redirect to an asset

Fixes #11