Run flush_rewrite_rules() after most custom post types have been registered
Merge pull request #127 from hulet/flush-bugfix

Run flush_rewrite_rules after most custom post types have been registered, fixes #126.