Refactor/engines

Merged the certs and users engine into the toplevel rails app.
Moved the other engines into an engines subdirectory.