change config.xml for following rewrite rule changes.
fix acl bug.
add region sort order fix code.
remove unused codes.