Fix utf8 on private key download
Fix undef warnings
Fix/improve scep open issues

Add stub code for Eligible check, introduce request_mode context param
Fix wrong condition in CalcApprovals and move approval_points to policy config