allow closing of cases in same form as they are opened

http://manage.dimagi.com/default.asp?125206

QA ticket: http://manage.dimagi.com/default.asp?126003

UV: http://dimagi.uservoice.com/forums/194738-app-builder/suggestions/3737339-open-and-close-case-in-same-form