Re-do function calling a bit

In an attempt to add in user-defined functions, I've put the built-in
functions inside the same structure that will house user-defined
functions in the future. This requires changes to how all functions are
called.