factorized dependencies and updated to wordpress 3.7.1