added getCount() function
Revert "Major release with real objects references"

This reverts commit 9096a976ea400a9361456467430bf949a753f973.
Merge branch 'cj/master'

Conflicts:
	emagid.php
	includes/functions.inc.php
MVC Support for arguments

Extra path parts / folders will be transfer to the view as arguments .

So :
if the view looks like  :

class Project{
public function view($id, $param2){}

}

The paths :
/Projects/View/24
will pass $id = 24

/Projects/View/24/test
will pass
- $id=24
-  $param1=test
Fixed the querystring problem
bug fix
Merge branch 'Upstream/master'

Conflicts:
	DB/db.php
Merge branch 'origin/master'