fixes autoloading issue. fixes basePath issue. refactors Application. adds functionality to Response and AssetHelper