Cleaned up a bunch of stuff

- Began infrastructure for /articles parsing.
- Initial attempt at parsing /articles in index.php
- Optimized certain functions in funcs.template.php
- Updated some documentation in funcs.template.php
- Restructured some parts of config.php