added initial API class, added API rountes, and set default format as json for API returns