Endpoint is now a function argument.
Renamed prismic.go to api.go
Api is now a struct with methods.