Update packages

move deps to dev
move to TypeScript
add definitions folder
add server folder



//
This still needs some cleanup, mostly in paths