First functional draft of the api. JSON output works for most data sets. Still have to implement some of the filtering functions of the API and tactical overview data