fixed permissions and get rid of inProduction flag in Application Http constructor