Added language localization system and changed to support PDO.
Added local testing support and a check for valid gateway when constructing User