fixes click region and adds js events to handle deploy local function

[finishes: #82316748] 
And adds js event handling for the local deployment form submit.

![screen shot 2014-11-10 at 4 19 59 pm](https://cloud.githubusercontent.com/assets/923211/4984945/34d3ed24-6928-11e4-8692-9c273e6f12da.png)