fix for using db simple dsn and fixes to Stoub template engine and added isAjax() function to http\request