Move REST Input Parser to REST/Common

Move REST Base Input Parser from Server to Common for reuse