RealInput fix and more config options in template

Endstops and axis length config added. Endstop settings include
pullups, input inversion and software endstops.