adding back missing uri template library
Factorized code for checkbox and radio input.
Renamed `text' and similar to `title' and similar