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.yml