Create defaultPage by slug

Now is possible create a default page by passing id or slug
Fixes PHP 5.2
Merge pull request #1 from Giseudo/master

Some fixes about compatibility with PHP 5.2