api: change /linkaliases endpoint to /aliases
tests: move links api tests to separate file