Implement fladgejt-rest with new API.

hmm ale nemalo by to byt pod nejakym if-om ze ci server ma rest?