Optimize using objects as lifecycle handlers.
Flip priority of src/ and local/ searching

New priority helps support dependency managers like composer and bower.