fix inflater issues

all fragments which are inflated using FragmentManager,
need to use the three parameter inflate method with attachToRoot
set to false; otherwise the app crashes with following error message:
"The specified child already has a parent".
Three parameter call of inflate is also used for adapters - see
http://www.doubleencore.com/2013/05/layout-inflation-as-intended/.
using the inflate method without setting attachToRoot caused
"java.lang.UnsupportedOperationException: addView(View, LayoutParams)
is not supported in AdapterView"
update gradle check task

- move checkstyle and lint config files to new config folder
- output folder for lint and checkstyle results set to build/reports
- activate pmd 5.1.1 (gradle 1.12 default is 4.3)
- toolVersion property is deprecated - but haven't found a workaround
- rulesets with excluded rules are moved to specific
ruleset files containing only one ruleset.
one general ruleset file did not work - excluded rules were ignored.
see http://stackoverflow.com/a/23546851/2093483
- gradle check task now executes pmd as well