Using init instead of manual registering of routes. This closes #34