Improved Error Handling

- More consistent syntax in dal.php
- Changed to require_once for includes
- Checked for existence of Mustache