Extract ajax to mixin & use es5

* Replace $.each and 'component = this' references with forEach and bind
* Create with_ajax mixin to provide put, post, get & delete methods