first api implementation (kinda slow)

- moved back to tornado -.-
- smaller fixes