Add option to disable staking, compilation files cleanup and .gitignore refactoring

Add option to disable staking, compilation files cleanup and .gitignore refactoring. Good luck !