Server updates

Response codes. Optimized querys
Facebook integration