added DEBUG mode for jsonserver, this is related with the issue #59 opened by @Gnugamel