Static Analysis Cleanup

I went through the static analysis that Xamarin Studio provides, and did quite a bit of cleanup. You probably shouldn't merge this PR, as I am half asleep, but I'm going to submit it anyways XD