Moved settings class to own directory.
Fixed a get related posts bug.