Fixes: 1350. Add ability to submit forms with ajax