[Reviewer: Rob] Add sub_max_expires parameter

Rob, can you review this change to add a sub_max_expires to control the maximum expiry time of a subscription.
Tested live and in UTs.

Fixes #660 
Per http://www.gnu.org/software/bash/manual/bash.html#Bash-Conditional-Expressions, the opposite of -z is -n.