Remove get_server_field from leave_application

- Make get_holidays and get_total_leave_days global to module
- Replace get_server_field with using whitelisted function
get_total_leave_days
Merge pull request #2379 from nathando/develop

Remove get_server_field from leave_application