Made basic service and initializer for CSRF token.

Used for dependency injection, so they will be globally available.