refactoring the tornado code
both apis have been moved from tornado_main to their individual files in the api dir
moved the utility function that checks for a django auth user within a request in tornado to a tornado lib file
removed a couple erroneous tornado web asynchronous wrappers from the tornado updates api as they were wrapping non http verb methods
updated system node apis and the tornado node lock api to send the update broadcasting calls to the ioloop main thread in tornado so they are run asynchronously from those apis
added a conditional to clearselection when the select's value changes in the js so it doesn't error on the blank map page