almost feature complete

wp 3.9 and 4.0 compatible, I'm too tired to list all the changes :)