RestMain renamed to Main

Added json representation in HTTP-Response