Added _loop_content()

We now have a _loop_content() function which displays the content
inside a specific loop.

[ticket: #35][Branch: development]
Refactored the query loop.

We have refactored the query loop to use the new loop contents function

The Loop mixins now has $options as a optional variable.

[ticket: #35][Branch: development]
Finished refactoring.

Split most if not all functions into smaller ones that are
in the form of public->protected->private

[ticket: #35][Branch: development]