add missing createApplication method to ApplicationTestCase 

used a little hack to expose the otherwise protected createApplication method.

also extended .gitignore to ignore idea files.