Added the controller helper

Controller helper, helps split code into more subsequent files. This code
enables access to different parts of the framework.
Change the way position of index.php is determined

To succesfully parse the request URI, the position of index.php must be
correctly determined in the request URI, which is not always possible,
because of rewrites. This fix removes unnecessary duplicated code and
simplifies retreival of that position.
Fixed base url construction

In the beginning stages of the life cycle, the base URL of the website is
generated, which was not constructed correctly if too many URI segments
were provided from the URL. This fixes issue #1
Development files

During development of current feature/bugfix, some other files had to be
changed or added
Merge branch 'feature/issue1' into develop