Added check rules and trustProxy setting.
Basic server concept running.