Add prototype resource pattern
Move routes into own class