initial 4

added skeleton of some core functions to core.php, early revisiion of
config.php, minor additions to other files