Moved presence code out of index.js
Initial move of redis stuff into its own file