Memory leak fix and active project display fixed.

The active project proxy model now follows the active project, when it
is moved and removed. The resource view content menu now also changes
for projects.