Wrapping div around form
According to the Form API Reference, #prefix &amp; #suffix are valid properties of the form element, so you should be able to:

$form['#prefix'] = '&lt;div class="some-class"&gt;';
$form['#suffix'] = '&lt;/div&gt;';