Add REST api skeleton.

Signed-off-by: Maël Lavault <mael.lavault@mailz.org>
Move template directory.

Signed-off-by: Maël Lavault <mael.lavault@mailz.org>
Finish GET REST methods.

Signed-off-by: Maël Lavault <mael.lavault@mailz.org>