Add static controller

Review please.
Some .idea files can be ignored.