Detailed guidelines for shell scripts

New scripts should follow this standard, except where dependence on legacy scripts prevents this; legacy scripts will be migrated over a period of time according to a managed programme.