Added Cookie based Authentication.
Added REST Service.