Massive phoenix cleanup

https://gist.github.com/teetrinkers/9435065