Implement modal layer for projectile package.
Implement flycheck modal behaviour.
Use projectile-global-on function instead of hooks.