Target .net 4.0
Code cleanup
Some cleanup of resharper warnings
More code cleanup
Hacking away at tearoff tabs. No idea what I am doing really.