Added cog flags to the cog compiler. Added cog loading to level loader.