Splitting the non-Azure functions out into their own file so that we can re-use them later.

references #2
Removing unnecessary comments

references #2