Prevent navigation if there are unsaved changes on the resource panel

After losing yet another half-way finished blog post by an accidental click, I cracked. Four freaking lines of code. 

![image](https://f.cloud.github.com/assets/312944/1866139/9bbac702-7828-11e3-88ab-2a51b3dffac8.png)