updated to support MVC4 and 5 and EntityFramewoork 6