Move npm specific logic from storage level to repository level. Not ready yet, need to figure out caching bit for proxy repo