Stop reporting each codex file as a user post

Sychronizing users was adding 14 posts to each user.
Fix install issues and a few other cleanups
Fix install issues
Clean up some issues with user rank.

The access to the ranks table should be through the handler, but for now the direct access has been upgraded.
Sync with changes made for security issue in 2.5.7
A couple of tweaks related to broken avatar image in userinfo
Merge pull request #24 from geekwright/master

Handful of Cleanups