API now grabs comments from the database and outputs them using JSON

Had a couple of issues where error reporting meant a notice was returned when calling line 38:
	Stating that $comment was not an object - serialisation was added but didn't change anything so errors have been turned off for this doc (not ideal)

Signed-off-by: Matthew Rayner <matt@mattrayner.co.uk>