includes/htmlform/: Use Config instead of globals

Change-Id: Ibc798f3ee22dec0a77bab39611d490c09b3cb764
Merge "includes/htmlform/: Use Config instead of globals"