JSON API
Some API improvements + mini partial
User API + refactoring