Statemachine: load task settings in constructor

Also add missing comma and default to not doing anything if we
do not know if a task requires e-transfer or not.
Web: require authorization to change state / QA
Web: record username when changing job state

Only show the state changing form when a user is logged in.
Web: show username in job log
Web: don't process hostname in the template

Domain names should not be put into the database in the first
place.
Use only first component of hostname

On some JAC machines, socket.gethostname returns a qualified
domain name, whereas on most machines it only returns the machine's
actual name.  Therefore process the output of socket.gethostname
to only keep the first component.