Added discovery rest and first pass at parsing it.