Major refactor and cleanup

- Added config.ini file
- Refactored Newsfeed/Message code (Mobile API still needs to be
refactored)
- AuthCheck refactored
- Minor cleanup in web frontend and core.js
Some work left on cleaning up the API