ORM improvements & include

Addign new DATE type, includes classes in code.
Syntax bugfix
Converting Thin to static
Globals accessors in functions
Cleaning global accessors

Remove useless accessors & php 5.3 code
Starting work on fiev api : setup