Add GRAVIA_ENABLED and other API enhancements