Store the resource stack with each handler
Test for errors in resource parser
Finish first pass at resource parsing