Warning: The code in this branch is very broken.
Started making a PDO wrapper to work with existing Crystal code, will hopefully support method chaining for building parameters
Fixed any notice/standards warnings I can in contact with. Looking a bit better for a 0.6.0 release
More strict standards errors found in the logs
Merge branch '0-7-0-BRANCH' into DBRefactor

Conflicts:
	system/config.php
	system/modules/auth/actions/login.php
	system/modules/auth/models/User.php
Successfully replaced Crystal!! YAYY
This means the introduction of a PDO wrapper class. For the most part it just uses FluentPDO with function names to match the current setup. i.e. we dont need to change fetch_all() to fetchAll()
Fixed elusive PDO bug where execute() was implemented incorrectly, started updating the session manager to use PDO and not raw queries. Some more complaints fixed from PHP
canges
Some small changes to session lifetime etc
Missed a commit last week, added count function to DBO
Merge branch 'DBRefactor' into 0-7-0-BRANCH
Made some changes to Task... need to think about a possible rewrite
Added PDO methods select, leftJoin, order_by
Updated DbService->getObject to also use the order_by clause (now the fourth parameter)
Added overridable autocomplete select callback that passes back the event and ui object (see /crm-opportunities/templates/edit.tpl.php for a brief explanation)
fixed upload and media directory paths
Fixed a bug where html::box links that displayed an <a> tag didn't have the blue link underline (missing href attribute)
Updated getDbTableName to work out the table name from the class name if the _db_table property is non existant (with help from the interwebs of course)
WARNING: This branch may break stuff! Modifiable aspects such as dt_created and is_deleted are no longer required for definition in a class, if the columns exist in the database then they will be used. However this is largely untested
Also you can now bypass FluentPDO/DbPDO to go straight to PDO by prefixing the first method call ONLY by an underscore
Fix PDO SQL function, updated warnings in tasks
Fixed DbObject delete when not declaring parameters in the model
Added fetch_element to PDO as the inbox uses this command
Fixed bug in multiColForm and also added orderBy parameter to getObjects
Updated attachments to work properly when error reporting is turned on
Added standardised Comments section! (TaskComment code is still in for stability as i didnt have time to change it)
It is used like:
To get form: GET /admin/comment/[COMMENT_ID]/[TABLE_NAME]/[OBJECT_ID]?redirect_url=[REDIRECT_URL]
where comment_id can be null