Set the max stored procedure recursion depth to maximum in session.
Added cleanup handler for views.
Added placeholder replacement for view scripts.