Fixing samples

Making 2 changes to fix samples. 
1.       Change
    "frameworks": {
        "net45": {},
        "k10": {}
    }
To 
   "frameworks": { 
       "aspnet50": { }, 
       "aspnetcore50": { } 
  } 
 
2.        IBuilder to IApplicationBuilder