Moved from local to general asset.pm

moved code from asset_local.pm to general asset.pm