Flie refactor

Pull request for challenge [30047592](https://www.topcoder.com/challenge-details/30047592/?type=develop)
This is nice.  I'll move the rest of the auth stuff here also.