[WIP] Feature/api queries stars

@myabc that's why it's WIP - I needed to make a pull request so that Richard can have a look at it (he'll implement angular part)