Added first code for server

- main structure
- hooks and plugins
- config
- console input