WIP using query in api controller just like in wp controller. trying to get angular to use the api method.
Discovering more about the api. think it's definitely a good idea now to create a new work packages api controller because planning elements controller isn't doing what we want.