Added resource loader option

Added a loader option to preload a resource for routes that utilize the entity id