Add support for intercepting route execution and adding metadata object to routes