Added locking framework, auto-downloading

AssetPack will now download files which it does not have locally.