Moved repos out of creat_app function.

Hopefully this will allow all instances of the application to share the repos correctly.