Move REST Input Parser to REST/Common

Move REST Base Input Parser from Server to Common for reuse
Merge pull request #794 from MLoureiro/fix_rest_input_parser

Move REST Input Parser to REST/Common