[En route to 0.5.7] /resample endpoint support

Added support to /resample endpoint.

No modification to existing code as this is a new feature.