PDIO-300.

1. Implement unittests for feature based itemrec, both batch and realtime
mode.
2. Refactor feature based code.
3. Specify some default values for appdata and settings.
Merge branch 'develop' of https://github.com/PredictionIO/PredictionIO into develop