fix api/usercontroller
add apns and gcm extension. config main.php