Add logistic regression and refactoring

- add logistic regression
- extract regularizer and loss functions; renaming
- add other loss functions and regularizer
- move regularizer parameter to initialization
Add Travis

- add .travis.yml
- adapt README.md