Simplify QueryEngine API

Rename query.{h,cpp} to api.{h,cpp}

Naming it query sounds like it only houses the Query class