Restructuring

Renamed functions.php to controller.php
    This requried me to edit index.php and pages/{contact,posts}.php.

The index.php file was also edited because it is no longer calling
control.js. control.js was renamed contact_controller.js because it was
the controller for the contact page.

posts.php was also edited other than for the rename of functions.php.
The logic that was on the page was moved to
resources/php/posts_controller.php