Refactored templates.js, now stringfy logic is outside, leave it just for resource/template stuff. prototype renamed to createClass (ok Croata?).