Add motor crud and some fixes at maintenance pieces. Closes #184
Add basic for  maintenance crud #185