update model of api_key with method to generate unique access token;
add api_authentication method to check the user token on users_controller;
add sign in and sign out methods for users_controller;
update before_action and before_filter methods on users_controller;
update routes to include the sign in and sign out routes;