IntelliJ project files

Fixes compilation within IDEA. Allows compiling and running JUnit tests directly withing the IDE.
Merge pull request #3708 from lrytz/intellij

IntelliJ project files