Moved flush_rewrite_rules() & renamed functions.

Expensive function, should run only on theme activation.
http://codex.wordpress.org/Function_Reference/flush_rewrite_rules
Also renamed functions in functions.php incase of conflict.
Merge pull request #1 from alexkilty/master

Moved flush_rewrite_rules() & renamed functions.