Update used API endpoints to the current spec
A lot of the used API endpoints were hard-coded before version r0.4.0 was released. As a result they are now out of date and might not even work anymore. They should be updated accordingly.
Bonus: It would probably be really useful to factor those API endpoints out into their own module as const values.