New functions file and replaced eg-wp file

New functions.php file to contain the main functions and replaced the
eg-wp.php file to include functions.php and does the 'rendering' of
content and hooks for WordPress