Finished basic security framework and request forgery prevention.