Refactored ajax and added register controller
Added pindrop close
Merge pull request #30 from Screengoose/ajax_refactor

Refactored ajax and added register controller