Add a way to find resource dir

Make it possible to find the resource directory via a search path or
passing it via configuration options.
Add stager check API

Make it possible to handle the loading page and all of that jazz