Improved code files hierarchy

Change-Id: I879f16a9be8772bc082b8183badd61156029ea11
Isolation of JsonRPC format and auto-clean old responses

Change-Id: I8d5e1086fd9a4d011781807e74693ea9bbeeabbb