Added APIInterace object from which interfaces inherrit from, to allow for custom buildQuery methods.