Redefined functions

I was exploring the code base and noticed that in the vast majority of places, private utility functions are declared like this:
``` javascript
function test() 
{
 /* Some code */
}
```
as opposed to:
``` javascript
var test = function() 
{
 /* Some code */
},
someOtherFunction = function() {
 /* Some other code */
}
```

I went ahead and changed the ones that were declared in chained variable form. In the process, indentation changed a bit. There are some issues with indentation (GitHub vs Atom), we should probably agree on a style guide, and have gulp enforce it.