Adding basic framework for assets middleware handler