Fixing references in project.json, cleaning up namespaces,
and fixing coreclr issue with runtimeFlavor variable