Moved to functions directory
Created
Moved to functions directory
More specific JS and debug checked by default
POST handling and debug

POST now expects main body to contain variables, not an array called
'variables'
Two variables are set to boolean values from strings
For testing, debug is always set  to true
Add constant PATH
Removed old tests
Made comments on debug vars less confusing