fixed cookie session issue. closes #1297
backported: better old session detection. related #1293
fixed autoloader not properly loading and initializing classes are an error or exception
Merge branch '1.5/develop' into 1.5/master