Widigetized the code

first WP widget commit