fixed path issue in /public/index.php
added /config.php, added /lib/functions.php, added function for generating view names based on constants in /config.php, updated index accordingly