Renaming class "Instance" to "ApiInstance".

The name of class "Instance" is too generic, renaming it "ApiInstance".