RC: added functions-init.php

Added the main functions file. It was moved to includes file.