Added library for debugging
Removed due to _datamapper_template.php provides a better example of Datamapper ORM models
Backported some validation rules from develop branch