update theme class to properly use WP_Theme class

significantly simplifies the contents of $config and calls few functions to get data