Resync with latest API changes

Handle merging of ep_cap and domain_cap into caps field, and
addition of mode bits.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Merge pull request #36 from shefty/master

Resync with latest API changes