Cleaned up code for devise, added mock Twitter test