Created sub files

Split out functions into utils and web service files to improve
manageability.