Added code analysis rulesets: all rules for now, except a separate ruleset for the P/Invoke library.