Fix formatting
"bot" flag is only allowed in "edit" action type; it would just fail any other API queries otherwise
Added minor/notminor flags for action=edit
Added assert=bot when we're in the bot mode; it will make actions fail if we don't really have a bot flag due to some circumstances; see http://www.mediawiki.org/wiki/Extension:AssertEdit for more info