Removing bloat from app and creating basic REST API