added short language detection, fixes https://github.com/phundament/app/pull/43
code formatting & cleanup
Merge branch 'master' of git://github.com/schmunk42/p3extensions