Add groonga compatible API layer

Tests for the API layer should be written!!!