Created Leave update routine plus changes

Have create new permission to lock the application
new routine to allow update of annual leave and now correctly counts
leave days even if there is a template change
Created new way of adding day time templates which also allow the user
who does not work 5 day/week to add leave for multiple days and weeks.