Added category API, category output (not finished) and fixed a bug regarding to id GET parameters.