initial support for project linting; fix pm to automatically deactivate old projects when activating new ones