Fixed 'applicatons' type, added 'registered', fixed invalid 'env'

Got an error when using gpb with Elixir and Relex. Relex was unable to parse gpb.app.src.