ACF V4 compatible

I did some crude work to get this to work with ACF V4. I got most of
the info from this thread
http://support.advancedcustomfields.com/forums/topic/need-help-with-fiel
ds-developer-question/ I'm sure I missed something but it "works for me"

No attempt was made to keep ACF V3 working.