Update everything to .Net 4

And downgrade core project.