Replicated logic from custom meta functions

Allows initialization and upgrade to occur before function files are
included
Merge pull request #536 from JeffSparkleGear/Custom-Meta-Init

Replicated logic from custom meta functions