Add javascript and API endpoint to change timezone

This is imperfect, it should set a proper POSIX timezone in the format of `PDT8PST` but it instead sets `EFF{offset}local` which will work for now.  Fixes #117
Add:

if __name__ == '__main__':

That way we can import the script from a test. Also please add a test.