Added src\settings.js to create window.FSM

FSM object used to store functions, with an end goal of moving
everything into one closure.