Resolving the Formation of Protogalaxies