Support API versioning. Working on #4