Lets find base path dynamically. Lets use redirect to keep the base path for html correctly
Updated to use updated method names for consumed and produced mime types in Restler