[FIX] backwards-compatible controller decorator not backwards-compatible at all, replace with @route
[FIX] handling of single-line files sent for preview