Implemented JSONP support

Fixed php 5.4 support
Added Behat step to assert errors