Some improvements

* Use config file for setting redis port
* Do not catch unhandled exceptions
* Change default port to 5001
* Temporary/quick&dirty fix. Set port to 5001 in tests. It should be taken from config file