Changed the template to include files and views inside other views. fixed an encryption and router bugs. Added a few more constants and added a number of exceptions to be used in core models.