Numerous small fixes to various classes

+ Add space for consistent syntax to PDO constructor in pages
+ Ignore errors on logging to file in pdo_connect
+ Fix logic on detecting connection success in pdo_resources
+ Return $this in json_response to not break chaining