Move everything into multiple modules

Finally figured out how to work with multiple files in meteor. You have to use
"foo = function() {}" instead of "function foo() {}" in order to make variables
visible outside of the file they're declared in.