Fixed an undesired behaviour in the api index regarding magic quotes, and applied the content stats display on the demo app's search list results.