@ohadlevy, I can't find where params[:hwp_id] is defined in the 'develop' branch.  It doesn't make sense that the API would use an AJAX method.