Added some phpdoc and reviewed some method.

 - \Foundation\Database::associativeArrayQuery(); now checks if the
query failed and returns false in that case. It also returns an
empty array if a query doesn't return any rows.
    
 - \Foundation\Resource : added phpdoc.

 - \Foundation\Resource : Fixed Resource::getById() method : now returns
false on failure.