resolves issue where local session is in conflict with preferences which causes messiness with metadata api parsing

refs joeferraro/MavensMate#140
better metadata tests
better retrieve handling