JSON + XML indent support

Refactoring
File type deteciton fixed
File type deteciton fixed
Indenting in background thread added
Revert "Indenting in background thread added"

This reverts commit 2a673e75021e15af6f51e90bfb13a6a93bb73e0a.
Stripping of spaces before indenting
Merge remote-tracking branch 'origin/jsonsupport'
Readme updated