Changed aspnetcore framework compatibility
- Updated JSON.NET to 6.0.6
- Removed win8 aliasing and added an temporary ugly heuristic for aspnetcore50
compat
- Added unit tests

#596