NR-57 : Basic REST server components for handling gateway

Made the security gateway respond with json codes