add support to change api prefix

(from the /api default)
Merge pull request #466 from ghedamat/mattia/proxy-prefix-parameter

add support to change api prefix (from the /api default)