add WP_LOCAL_DEV constant
minor cleanup of facepile code