add: tests
add: unit tests with karma (jasmine), fix: pushState setting when no config
Merge branches 'dev' and 'master'