moved all protected functions to the Container class. Added casting to downcast the return value to ResourcePlayer.
Merge branch 'dev' of https://github.com/micurs/relax.js into dev