Fixed save/update transaction in ApplicationController. Introduced rollback.